package com.culturalCenter.dataCenter.entity.activity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 活动服务人次
 * @TableName cdc_activity_served_number
 */
public class ActivityServedNumbers implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 分馆id
     */
    private String branchid;

    /**
     * 日期
     */
    private Date date;

    /**
     * 线上服务人数
     */
    private Integer onlinenumber;

    /**
     * 线下服务人数
     */
    private Integer offlinenumber;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 分馆id
     */
    public String getBranchid() {
        return branchid;
    }

    /**
     * 分馆id
     */
    public void setBranchid(String branchid) {
        this.branchid = branchid;
    }

    /**
     * 日期
     */
    public Date getDate() {
        return date;
    }

    /**
     * 日期
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * 线上服务人数
     */
    public Integer getOnlinenumber() {
        return onlinenumber;
    }

    /**
     * 线上服务人数
     */
    public void setOnlinenumber(Integer onlinenumber) {
        this.onlinenumber = onlinenumber;
    }

    /**
     * 线下服务人数
     */
    public Integer getOfflinenumber() {
        return offlinenumber;
    }

    /**
     * 线下服务人数
     */
    public void setOfflinenumber(Integer offlinenumber) {
        this.offlinenumber = offlinenumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityServedNumbers other = (ActivityServedNumbers) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBranchid() == null ? other.getBranchid() == null : this.getBranchid().equals(other.getBranchid()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getOnlinenumber() == null ? other.getOnlinenumber() == null : this.getOnlinenumber().equals(other.getOnlinenumber()))
            && (this.getOfflinenumber() == null ? other.getOfflinenumber() == null : this.getOfflinenumber().equals(other.getOfflinenumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBranchid() == null) ? 0 : getBranchid().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getOnlinenumber() == null) ? 0 : getOnlinenumber().hashCode());
        result = prime * result + ((getOfflinenumber() == null) ? 0 : getOfflinenumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", branchid=").append(branchid);
        sb.append(", date=").append(date);
        sb.append(", onlinenumber=").append(onlinenumber);
        sb.append(", offlinenumber=").append(offlinenumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}